package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller


public class UserController {

    @Autowired
    @Qualifier(value = "user2")
    private User user;


    public void sayHi(){
        System.out.println("User--->"+ user);
    }
}
